#include <iostream>
using namespace std;
static std::string AddSuffix(const std::string &file_name, const std::string &suffix)
        {
            std::string path_name("");
            path_name += file_name;
            path_name += suffix;
            return path_name;
        }

        static std::string CompilerError(const std::string &file_name)
        {
            return AddSuffix(file_name, ".compile_error");
        }

        static std::string Src(const std::string &file_name)
        {
            return AddSuffix(file_name, ".cpp");
        }

int main()
{
    string file_name("code");
    CompilerError(file_name);
    Src(file_name);
    cout << file_name << endl;
    return 0;
}